package com.itliupeng.stock.mapper;

import com.itliupeng.stock.pojo.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 22375
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2025-04-06 20:25:45
* @Entity com.itliupeng.stock.pojo.entity.SysRole
*/
public interface SysRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> getUserRoleByIds(@Param("roleIds") List<Long> roleIds);


    List<SysRole> getAllRole();

    int updateStatusById(@Param("roleId") Long roleId, @Param("status") Long status);
}
